function initTable(e, t, o) {
	"use strict"; !
	function() {
		$("#lst").bootstrapTable({
			url: basePath+"/sysFile/queryFile",
			method: "post",
			queryParams:queryParams,
			contentType: "application/x-www-form-urlencoded",
//			search: !0,
			showRefresh: 0,
			showToggle: 0,
			showColumns: 0,
			striped: !0,
			iconSize: "outline",
			toolbar: "#exampleTableEventsToolbar",
			icons: {
				refresh: "glyphicon-repeat",
				toggle: "glyphicon-list-alt",
				columns: "glyphicon-list"
			},
			responseHandler:function(data) {
				return data
			},

		   silent: true,  //刷新事件必须设置  
		   idField: "id",
		   //height: 500,
		   formatLoadingMessage: function () {  
			   return "请稍等，正在加载中...";  
		   },  
		   formatNoMatches: function () {  //没有匹配的结果  
			   return '无符合条件的记录';  
		   },  
		   onLoadError: function (data) {  
			   $('#lst').bootstrapTable('removeAll');  
		   },  
	       onLoadSuccess: function (data) {
	           return false;
	       },
		   onClickRow: function (row) {  
		   }
		});
		$(".glyphicon-remove-circle").parent().click(function(){
			if($("#survey_type").val() == 'SJ' && $("#from").val() == 'approve'){
			    location.href=basePath+'/opport/opport/opport_approve.jsp'; 
		    }else if($("#survey_type").val() == 'SJ' && $("#from").val() == 'list'){
			    location.href=basePath+'/opport/opport/opport_list.jsp'; 
		    }else if($("#survey_type").val() == 'SJHB'){
			    location.href=basePath+'/opport/partner/partner_list.jsp'; 
		    }
		    //报价单查询页面附件下载
		    else if($("#survey_type").val() == 'BJD' && $("#from").val() == 'list'){
			    location.href=basePath+'/quotation/quotation_list.jsp'; 
		    }
			//关闭项目
		    else if($("#survey_type").val() == 'GBCL'&& $("#from").val() == 'list'){
			    location.href=basePath+'/item/item_stage/ItemOffApply.jsp'; 
		    }
		    else if($("#survey_type").val() == 'GBCL'&& $("#from").val() == 'xmlx'){
			    location.href=basePath+'/item/item/item_list.jsp'; 
		    }
			//报价单审核页面附件下载
		    else if($("#survey_type").val() == 'BJD' && $("#from").val() == 'approve'){
			    location.href=basePath+'/quotation/quotation_approve.jsp'; 
		    }
		});
	} ()
	
} (document, window, jQuery);

/**查询条件与分页数据 */  
function queryParams(pageReqeust) {  
    pageReqeust.data_id=$("#data_id").val();
    pageReqeust.survey_type=$("#survey_type").val();
    return pageReqeust;  
}

function fileType(value){
	if("oemFile" == value){
		return "OEM协议附件";
	}else if("outFile" == value){
		return "外包附件";
	}else{
		return '';
	}
}

function fileLoad(value, row, index) {
    return [
        '<a class="edit ml10" href="javascript:fileDown(\''+row.id+'\')" title="附件查看">',
        '下载',
        '</a>'
    ].join('');
}

function fileDown(id){
	 $("#fileId").val(id);
	 $('#fileSearForm')[0].action =basePath+'/sysFile/download';	  
	 $('#fileSearForm')[0].submit(); 
}